package net.sk.china.city.mapper;

import java.util.List;
import java.util.Optional;

import net.sk.china.city.domain.ArCharitableOrganization;
import net.sk.china.city.domain.dto.organization.OrganizationSearchDTO;
import net.sk.china.city.domain.dto.organization.OrganizationUpdateDTO;

/**
 * 慈善机构Mapper接口
 * 
 * @author ruoyi
 * @date 2024-04-07
 */
public interface ArCharitableOrganizationMapper 
{
    /**
     * 查询慈善机构
     * 
     * @param pkId 慈善机构主键
     * @return 慈善机构
     */
    public Optional<ArCharitableOrganization> selectArCharitableOrganizationByPkId(Long pkId);

    /**
     * 查询慈善机构列表
     *
     * @param organizationSearchDTO@return 慈善机构集合
     */
    public List<ArCharitableOrganization> selectArCharitableOrganizationList(OrganizationSearchDTO organizationSearchDTO);

    /**
     * 新增慈善机构
     * 
     * @param arCharitableOrganization 慈善机构
     * @return 结果
     */
    public int insertArCharitableOrganization(OrganizationUpdateDTO arCharitableOrganization);

    /**
     * 修改慈善机构
     * 
     * @param arCharitableOrganization 慈善机构
     * @return 结果
     */
    public int updateArCharitableOrganization(OrganizationUpdateDTO arCharitableOrganization);

    /**
     * 删除慈善机构
     * 
     * @param pkId 慈善机构主键
     * @return 结果
     */
    public int deleteArCharitableOrganizationByPkId(Long pkId);

    /**
     * 批量删除慈善机构
     * 
     * @param pkIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteArCharitableOrganizationByPkIds(Long[] pkIds);
}
